<?php /* УТФ-8:fix */

class SPIcontroller__logos__front extends SPIcontroller__logos
{
    public function get_random()
    {
        $item = SPIm::I('logos')->front->get_random();

        if( $item === false )
        {
            return false;
        }

        $item['preview'] = SPIm::I('media')->get_public_sourceByIndexNewJpeg(
            $this->MEDIA_GID, $item['id'], 1,
            array( 'mode' => 'preview' )
        );

        return $item;
    }
}
